export const menuItems = {
  text: {
    type: 'text',
    snapshot: '/myactivity/imgs/question-type-snapshot/iL84te6xxU1657702189333.webp',
    path: 'InputModule',
    icon: 'qus-wenben',
    title: '单行文本'
  },
  textarea: {
    type: 'textarea',
    snapshot: '/myactivity/imgs/question-type-snapshot/11iAo3ca0u1657702225416.webp',
    path: 'TextareaModule',
    icon: 'qus-wenben',
    title: '多行文本'
  },
  radio: {
    type: 'radio',
    snapshot: '/myactivity/imgs/question-type-snapshot/TgeRDfURJZ1657702220602.webp',
    icon: 'qus-danxuan',
    path: 'RadioModule',
    title: '单项选择'
  },
  checkbox: {
    type: 'checkbox',
    path: 'CheckboxModule',
    snapshot: '/myactivity/imgs/question-type-snapshot/Md2YmzBBpV1657702223744.webp',
    icon: 'qus-duoxuan',
    title: '多项选择'
  },
  'binary-choice': {
    type: 'binary-choice',
    snapshot: '/myactivity/imgs/question-type-snapshot/blW8U1ckzd1657702223023.webp',
    path: 'BinaryChoiceModule',
    icon: 'qus-panduan',
    title: '判断题'
  },
  'radio-star': {
    type: 'radio-star',
    snapshot: '/myactivity/imgs/question-type-snapshot/7CU6tn4XqT1657702221208.webp',
    path: 'StarModule',
    icon: 'qus-pingfen',
    title: '评分'
  },
  'radio-nps': {
    type: 'radio-nps',
    path: 'NpsModule',
    snapshot: '/myactivity/imgs/question-type-snapshot/radio-nps.webp',
    icon: 'qus-npinfen',
    title: 'nps评分'
  },
  vote: {
    type: 'vote',
    path: 'VoteModule',
    snapshot: '/myactivity/imgs/question-type-snapshot/nGTscsZlwn1657702222857.webp',
    icon: 'qus-vote',
    title: '投票'
  },
  position: {
    type: 'position',
    path: 'PositionModule',
    snapshot: '',
    icon: 'qus-location',
    title: '地理位置'
  },
  temperature: {
    type: 'temperature',
    path: 'TemperatureModule',
    snapshot: '',
    icon: '',
    title: '体温'
  },
  table: {
    type: 'table',
    path: 'TableModule',
    snapshot: '',
    icon: 'qus-biaoge',
    title: '表格题'
  },
  'scan_code': {
    type: 'scan_code',
    path: 'ScanCodeModule',
    snapshot: '',
    icon: 'tixing-toupiao',
    title: '扫码录入'
  },
  select: {
    type: 'select',
    path: 'SelectModule',
    snapshot: '',
    icon: 'qus-xiala',
    title: '下拉选择'
  },
  number: {
    type: 'number',
    path: 'NumberModule',
    snapshot: '',
    icon: 'qus-tiwen',
    title: '数字'
  },
  money: {
    type: 'money',
    path: 'MoneyModule',
    snapshot: '',
    icon: 'qus-tiwen',
    title: '金额'
  },
  department: {
    type: 'department',
    path: 'DepartmentModule',
    snapshot: '',
    icon: '',
    title: '部门'
  },
  member: {
    type: 'member',
    path: 'MemberModule',
    snapshot: '',
    icon: '',
    title: '成员'
  },
  date: {
    type: 'date',
    path: 'DateModule',
    snapshot: '',
    icon: 'qus-time',
    title: '日期'
  },
  time: {
    type: 'time',
    path: 'TimeModule',
    snapshot: '',
    icon: 'qus-time',
    title: '时间'
  },
  duration: {
    type: 'duration',
    path: 'DurationModule',
    snapshot: '',
    icon: 'qus-tiwen',
    title: '时长'
  },
  address: {
    type: 'address',
    path: 'AddressModule',
    snapshot: '',
    icon: '',
    title: '地理位置'
  },
  province: {
    type: 'province',
    path: 'ProvinceModule',
    snapshot: '',
    icon: '',
    title: '省份'
  },
  location: {
    type: 'location',
    path: 'LocationModule',
    snapshot: '',
    icon: '',
    title: '自动定位'
  },
  phone: {
    type: 'phone',
    path: 'PhoneModule',
    snapshot: '',
    icon: '',
    title: '手机号'
  },
  wechat: {
    type: 'wechat',
    path: 'WechatModule',
    snapshot: '',
    icon: '',
    title: '微信号'
  },
  email: {
    type: 'email',
    path: 'EmailModule',
    snapshot: '',
    icon: '',
    title: '邮箱'
  },
  name: {
    type: 'name',
    path: 'NameModule',
    snapshot: '',
    icon: '',
    title: '姓名'
  },
  sex: {
    type: 'sex',
    path: 'SexModule',
    snapshot: '',
    icon: '',
    title: '性别'
  },
  age: {
    type: 'age',
    path: 'AgeModule',
    snapshot: '',
    icon: '',
    title: '年龄'
  },
  idno: {
    type: 'idno',
    path: 'IdnoModule',
    snapshot: '',
    icon: '',
    title: '身份证号'
  },
  birthday: {
    type: 'birthday',
    path: 'BirthdayModule',
    snapshot: '',
    icon: '',
    title: '出生年月'
  },
  'clothing_size': {
    type: 'clothing_size',
    path: 'ClothingSizeModule',
    snapshot: '',
    icon: '',
    title: '服装尺码'
  },
  relations: {
    type: 'relations',
    path: 'RelationsModule',
    snapshot: '',
    icon: '',
    title: '社会关系'
  },
  image: {
    type: 'image',
    path: 'ImageModule',
    snapshot: '',
    icon: 'qus-tupian',
    title: '图片'
  },
  upload: {
    type: 'upload',
    path: 'UploadModule',
    snapshot: '',
    icon: 'qus-upload',
    title: '附件'
  },
  signature: {
    type: 'signature',
    path: 'SignatureModule',
    icon: 'qus-qianming',
    title: '签名'
  },
}

const menuGroup = [
  {
    title: '常用',
    questionList: ['text','textarea', 'radio', 'checkbox', 'binary-choice', 'radio-star', 'radio-nps', 'vote',  'image', 'select', 'number', 'upload', 'signature']
  },
  {
    title: '时间', 
    questionList: ['date', 'time', 'duration']
  },
  // {  'table',  
  //   title: '通讯录', 'position', , 'money'
  //   questionList: ['department', 'member']
  // },
  // {
  //   title: '位置',
  //   questionList: ['address', 'province', 'location']
  // },'clothing_size','relations', 
  {
    title: '联系方式',
    questionList: ['phone', 'wechat', 'email']
  },
  {
    title: '填写人信息',
    questionList: ['name', 'sex', 'age', 'idno', 'birthday', 'temperature']
  },
]

const menu = menuGroup.map((group) => {
  group.questionList = group.questionList.map((question) => menuItems[question])
  return group
})

export const questionTypeList = Object.values(menuItems)

export default menu
